from sqlalchemy import Boolean, Column, Integer, String, DateTime
from app.db.database import DBase
from datetime import date


class User(DBase):
    __tablename__ = "Users"

    id = Column(Integer, primary_key=True, index=True, autoincrement=True)
    userName = Column(String(20), unique=True, index=True)
    name = Column(String(20))
    passWord = Column(String(100))
    apartment = Column(String(30))
    authority = Column(String(10))
    is_active = Column(String(10))
    created_time = Column(DateTime, default=date.today())
